/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
}
body {
    font-family: sans-serif, arial;
}
a {
    text-decoration: none;
}
img {
    width: 100%;
}
ol,
ul {
    list-style: none;
}
/*  common */
.clearfix::after {
    content: '';
    display: block;
    clear: both;
}
.tac {
    text-align: center;
}
.indent {
    text-indent: 2em;
}
.next-indent {
    margin-left: 1em;
    text-indent: -1em;
}
.emphasize,
.important {
    margin: 0 2px;
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    background-color: #eee;
    line-height: 1em;
}

.emphasize {
    color: #2196f3;
}

.important {
    color: #e91e63;
}
@mixin title {
    display: flex;
    justify-content: center;
    font-size: 18px;
}

@mixin lastSpan {
    margin-left: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 3px;
    font-size: 0.8em;
    color: #3090e4;
    background-color: rgba(48, 144, 228, 0.1);
    border-radius: 6px;
}
/* page */
.wrapper {
    margin: 0.1rem auto;
    margin-bottom: 2rem;
    padding-top: 1.2rem;
    min-width: 900px;
    max-width: 90%;
    border: 2px solid #cee298;
    border-radius: 12px;
    .user {
        float: left;
        margin-left: 4%;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        max-width: 26%;
        border-radius: 1000px 1000px 12rem 12rem;
        background-color: #cee298;
        & > .photo {
            margin: 0.8rem auto;
            min-width: 13rem;
            max-width: 92%;
            border-radius: 50%;
            // background-image: url(photo.jpg);
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            &::after {
                content: '';
                display: block;
                padding-top: 100%;
            }
        }
        & > .item {
            position: relative;
            padding-top: 2.4rem;
            & > .title {
                position: absolute;
                left: -1.5rem;
                top: 0;
                padding: 0.4rem 2.8rem 0.4rem 2.4rem;
                border-radius: 0 12px 58px 0;
                background-color: #8bcdcc;
                color: #fff;
                text-transform: uppercase;
                font-size: 1.25rem;
                letter-spacing: 0.1rem;
                box-shadow: 0px 0px 1px 0px #3499a7;
                &::after {
                    content: '';
                    display: block;
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 0;
                    height: 0;
                    border: 0.6rem solid transparent;
                    border-top-width: 0.5rem;
                    border-right-width: 0.75rem;
                    border-top-color: #3499a7;
                    border-right-color: #3499a7;
                }
            }
            & > .content {
                padding: 0.4rem 1rem 1rem;
                line-height: 1.8rem;
                color: #3499a7;
                word-break: break-all;
            }
        }
    }
    .main {
        float: left;
        width: 70%;
        padding: 0 1rem;
        & > .header {
            display: flex;
            justify-content: center;
            align-items: center;
            & > .left {
                margin-right: 1.2rem;
                font-size: 3.2rem;
                font-weight: normal;
                letter-spacing: 0.3rem;
                color: #cee298;
            }
            & > .right {
                display: flex;
                flex-direction: column;
            }
        }
        & > .header2 {
            text-align: center;
            font-size: 1.2rem;
        }
    }
    .main2 {
        float: left;
        padding: 1.2rem 1rem;
        .portfolio {
            display: flex;
            flex-wrap: wrap;
            padding: 10px;
            padding-bottom: 20px;
            line-height: 1.8em;
            border-bottom: 1px solid #ccc;
            &:last-child {
                padding-bottom: 0;
                border-bottom: none;
            }
            .img-wrapper {
                margin-right: 4%;
                margin-top: 24px;
                width: 40%;
                flex-shrink: 0;
            }
            .link-wrapper {
                width: 56%;
            }
            .desc {
                margin-top: 10px;
            }
            .title {
                @include title;
                & > span:last-child {
                    @include lastSpan;
                }
            }
        }
    }
    .mainItem {
        & > .title {
            margin-top: 0.8rem;
            padding: 0.2rem;
            text-align: center;
            font-size: 1.2rem;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            background-color: #cee298;
            color: #fff;
            box-shadow: 0px 0px 1px 0px #cee298;
        }
        & > .content {
            margin-top: 0.8rem;
            line-height: 1.6rem;
            .line {
                display: flex;
                justify-content: space-around;
                align-items: center;
                font-weight: bold;
            }
            ol > li.listItem {
                margin-top: 6px;
                border-top: 1px solid #ccc;
                & > .title {
                    @include title;
                    & > span:last-child {
                        @include lastSpan;
                    }
                }
            }
        }
    }
}
